package com.liugl.activitytest

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import utils.L

///所有自定义Activity的父类
open class BasicActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        L.d("BasicActivity ${javaClass.simpleName}")

        ActivityCollector.addActivity(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        ActivityCollector.removeActivity(this)
    }
}